package main

import (
	"context"
	"fmt"
	"github.com/cloudwego/hertz/pkg/app"
	"github.com/cloudwego/hertz/pkg/app/server"
	"github.com/cloudwego/hertz/pkg/common/utils"
	"github.com/cloudwego/hertz/pkg/protocol/consts"
	"github.com/shopspring/decimal"
	"math/big"
	"strconv"
)

func main() {
	v3 := big.NewInt(0)
	v3.SetString("123456789", 10)
	v4 := big.NewInt(32)
	v5 := big.NewInt(0)
	v5.Add(v3, v4)
	fmt.Println(v5.String())

	var vv, _ = decimal.NewFromString("0.123451234567891234567893467892345673456")
	fmt.Println(vv)

	if false {
		v1 := 19
		ss := strconv.Itoa(v1)
		fmt.Println(ss)
		h := server.Default()

		h.GET("/ping", func(c context.Context, ctx *app.RequestContext) {
			ctx.JSON(consts.StatusOK, utils.H{"message": "pong"})
		})
		h.Spin()
	}

}
